package com.imooc.o2o.service;

import org.apache.ibatis.annotations.Param;

import com.imooc.o2o.dto.ClassGradeExecution;
import com.imooc.o2o.dto.ExcelExecution;
import com.imooc.o2o.dto.GradeSubjectExecution;
import com.imooc.o2o.entity.ClassesGrade;
import com.imooc.o2o.entity.Excel;
import com.imooc.o2o.excptions.ClassGradeOperationException;
import com.imooc.o2o.excptions.ExcelOperationException;

public interface ClassGradeService {
	/**
	 * 添加班级成绩
	 * @param excel
	 * @return
	 * @throws ExcelOperationException
	 */
	ClassGradeExecution addClassGrade(ClassesGrade classesGrade)throws ClassGradeOperationException;
	
	/**
	 * 查询
	 */
	ClassesGrade getCLassGradeByExcelId(long excelId);
	/**
	 * 更新
	 * @param excel
	 * @return
	 */
	ClassGradeExecution modifyClassGrade(ClassesGrade classesGrade) throws ClassGradeOperationException;
	/**
	 * 通过id删除考试命题
	 * @param subjectId
	 * @param excelId
	 * @return
	 */
	ClassGradeExecution deleteClassGradeById(@Param("gradeId")Integer gradeId,@Param("excelId")long excelId);
}
